import request from '@/utils/request'

/*
 *验证码-登录的验证码接口
 */
export const getLoginCodeAPI = (key) => {
  return request({
    url: '/manager/captcha',
    method: 'GET',
    params: {
      key
    },
    responseType: 'arraybuffer'
  })
}

/*
* 登录接口
*/

export const userLoginAPI = (data) => {
  return request({
    url: '/manager/login',
    method: 'POST',
    data
  })
}
